package com.cloudcc.mobile.entity.addmicropost;

import java.io.Serializable;

import com.cloudcc.mobile.entity.EntityBase;
import com.cloudcc.mobile.entity.chat.DraftBox;
import com.lidroid.xutils.db.annotation.Column;
import com.lidroid.xutils.db.annotation.Foreign;
import com.lidroid.xutils.db.annotation.Table;

/** * 发布“链接”类型的帖子 */
@Table(name = "AddMicroPostL")
public class AddMicroPostL extends EntityBase implements Serializable {
	@Column(column = "linkName")
	private String linkName;// 链接名称

	@Column(column = "filedata")
	private byte[] filedata;// 文件内容，byte[]类型

	@Column(column = "linkValue")
	private String linkValue;// 链接

	@Column(column = "body")
	private String body;// 帖子的内容

	@Column(column = "targetType")
	private String targetType;

	@Column(column = "targetId")
	private String targetId;
	@Column(column = "longitude")
	private double longitude;
	@Column(column = "latitude")
	private double latitude;
	@Column(column = "address")
	private String address;
	@Column(column = "recordId")
	private String recordId;
	@Column(column = "isClickable")
	private boolean isClickable;
	@Column(column = "taskIdOrEventId")
	private String taskIdOrEventId;
	@Foreign(column = "parentId", foreign = "id")
	public DraftBox parent;

	public DraftBox getParent() {
		return parent;
	}

	public void setParent(DraftBox parent) {
		this.parent = parent;
	}

	public boolean isClickable() {
		return isClickable;
	}

	public void setClickable(boolean isClickable) {
		this.isClickable = isClickable;
	}

	public String getTaskIdOrEventId() {
		return taskIdOrEventId;
	}

	public void setTaskIdOrEventId(String taskIdOrEventId) {
		this.taskIdOrEventId = taskIdOrEventId;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getLinkName() {
		return linkName;
	}

	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}

	public byte[] getFiledata() {
		return filedata;
	}

	public void setFiledata(byte[] filedata) {
		this.filedata = filedata;
	}

	public String getLinkValue() {
		return linkValue;
	}

	public void setLinkValue(String linkValue) {
		this.linkValue = linkValue;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getTargetType() {
		return targetType;
	}

	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}

	public String getTargetId() {
		return targetId;
	}

	public void setTargetId(String targetId) {
		this.targetId = targetId;
	}

	public String getRecordId() {
		return recordId;
	}

	public void setRecordId(String recordId) {
		this.recordId = recordId;
	}

	public AddMicroPostL(String linkName, byte[] filedata, String linkValue,
			String body, String targetType, String targetId, String recordId) {
		super();
		this.linkName = linkName;
		this.filedata = filedata;
		this.linkValue = linkValue;
		this.body = body;
		this.targetType = targetType;
		this.targetId = targetId;
		this.recordId = recordId;
	}

	public AddMicroPostL() {
		super();
	}

}
